Socket
Socket
Sign inDemoInstall

queue-microtask

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

queue-microtask

fast, tiny `queueMicrotask` shim for modern engines


Version published
Weekly downloads
37M
increased by1.43%
Maintainers
1
Weekly downloads
 
Created

What is queue-microtask?

The queue-microtask npm package provides a way to queue tasks to run after the current JavaScript event loop tick, but before rendering or IO. This is useful for deferring less critical work until after more important tasks have completed without causing significant delays.

What are queue-microtask's main functionalities?

Deferring execution

This feature allows you to defer the execution of a function until after the current event loop tick has completed, but before the browser's rendering process begins. It's useful for optimizing performance by ensuring that critical tasks are not delayed by less critical ones.

queueMicrotask(() => {
  console.log('This runs after the current event loop tick but before rendering.');
});
0

Keywords

FAQs

Package last updated on 22 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc